<?php

function curlPost($url, $postFields) {
	$postFields = http_build_query($postFields);
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
	$result = curl_exec($ch);
	curl_close($ch);
	return $result;
}


//老板账号 13520096555 chun901110 id=108 store_id=144
//员工账号 13520096547 chun901110 id=545 store_id=144
//用户账号 15639713083 chun901110
//用户账号 15809836111 111111


//$host = 'http://localhost/kkmnew/public/index.php/';  //本地
//$host = 'http://app.dwkekemei.com/kkmnew/public/index.php/';  //服务器
//$host = 'http://app.dwkekemei.com/kkmtest/public/index.php/';  //服务器
$host = 'http://app.dwkkm.com/kkmnew/public/';


//商户登录
/*
$url = $host . 'sv310/store/login';
$data = [
	'telephone' => '15639713083',
	'staff_pwd' => '901110chun',
];
*/


//新商户登录
/*
$url = $host . 'sv309/store/dologin';
$data = [
	'telephone' => '14799990000',
	'staff_pwd' => '14799990000',
];
*/


//下拉刷新
/*
$url = $host . 'sv310/public/index';
$data = [
	'staff_id' => 2485,
	'store_id' => 70194,
];
*/


//营业数据全部员工列表
/*
$url = $host . 'sv300/income/stafflist';
$data = [
	'staff_id' => 9134,
	'store_id' => 79168,
];
*/


//营业数据 + 更多数据
/*
$url = $host . 'sv310/income/mydata';
$data = [
	'staff_id' => 23577,
	'store_id' => 80408,
	'type' => 4,
	//'id' => 16949,
	'startTime' => '2017-01-01',
	'endTime' => '2018-4-19',
];
*/



//意见反馈
/*
$url = $host . 'sv300/ucenter/insertopinion';
$data = [
	'content' => '希望增加评论功能',
	'contact' => '1111111',
	'store_id' => 73482,
	'userid' => 9129,
];
*/


//修改密码
/*
$url = $host . 'sv300/ucenter/changepwd';
$data = [
    'staff_id' => 108,
	'staff_pwd' => '111111',
	'staff_new_pwd' => '123456',
];
*/

//获取当前用户支付宝姓名
/*
$url = $host . 'sv300/ucenter/myzfbname';
$data = [
    'staff_id' => 297,
];
*/


//设置提现信息
//修改提现信息
/*
$url = $host . 'sv300/ucenter/savezfb';
$data = [
    'staff_id' => 108,
	'zfb_name' => '阳红',
	'zfb' => '123456789@qq.com',
	'pwd' => '123456',
];
*/


//修改提现信息发送验证码
//找回提现密码发送验证码
/*
$url = $host . 'sv308/ucenter/sendcode';
$data = [
    'staff_id' => 108,
	'telephone' => '111111111111',
	'type' => '3',
];
*/


//修改提现信息验证提现密码和验证码
/*
$url = $host . 'sv300/ucenter/checkpaypwdandcode';
$data = [
    'staff_id' => 108,
	'telephone' => '13520096555',
	'code' => '6258',
	'pwd' => '123456',
];
*/


//找回提现密码验证营业执照号和验证码
/*
$url = $host . 'sv300/ucenter/checkbusnumberandcode';
$data = [
    'staff_id' => 108,
	'store_id' => 144,
	'telephone' => '13520096555',
	'code' => '4126',
	'bus_number' => '111112222233333',
];
*/


//保存新消息提示
/*
$url = $host . 'sv300/ucenter/savemsgstatus';
$data = [
    'staff_id' => 108,
	'msg_status' => 4,
];
*/


//查询支付密码是否正确
/*
$url = $host . 'sv300/ucenter/checkpaypwd';
$data = [
    'staff_id' => 108,
	'pwd' => 'chun90',
];
*/


//修改支付密码
/*
$url = $host . 'sv300/ucenter/changepaypwd';
$data = [
    'staff_id' => 108,
	'pwd' => '000000',
];
*/


//消息中心
/*
$url = $host . 'sv300/ucenter/message';
$data = [
    'staff_id' => 16885,
	'store_id' => 77086,
];
*/


//店铺消息列表
/*
$url = $host . 'sv300/ucenter/storemessage';
$data = [
    'staff_id' => 16885,
	'store_id' => 77086,
	'perPage' => 5,
	'lastId' => 0,
];
*/


//系统消息列表
/*
$url = $host . 'sv300/ucenter/sysmessage';
$data = [
	'staff_id' => 108,
	'perPage' => 20,
	'lastId' => 0,
];
*/


//系统消息详情
/*
$url = $host . 'sv300/ucenter/sysmessagecnt';
$data = [
	'staff_id' => 16885,
	'news_id' => 255,
];
*/


//检查新版本
/*
$url = $host . 'sv300/ucenter/checkversion';
$data = [
	'staff_id' => 545,
	'platform' => 'android',
	'version' => '2.8.1',
];
*/


//直播列表
/*
$url = $host . 'sv309/webcast/webcastlist';
$data = [
	'staff_id' => 545,
	'page' => 1,
];
*/


//直播详情
/*
$url = $host . 'sv300/webcast/webcastcnt';
$data = [
	'staff_id' => 545,
	'webcast_id' => '2eaab68de60947dfb3409f2109556d9b',
];
*/


//直播提醒我
/*
$url = $host . 'sv301/webcast/webcastnotify';
$data = [
	'staff_id' =>  9242,
	'platform' => 'ios',
	'webcast_id' => 'ec109a2c68664936bbcb327a7ca617ce',
];
*/


//直播聊天头像
/*
$url = $host . 'sv300/webcast/chatavatar';
$data = [
	'staff_id' => 108,
	'sender' => '13520096547',
];
*/


//增加点播播放次数
/*
$url = $host . 'sv300/webcast/incvodnumber';
$data = [
	'staff_id' => 108,
	'number' => '26515095',
];
*/


//进入直播
/*
$url = $host . 'sv300/webcast/joinwebcast';
$data = [
	'staff_id' => 108,
	'audience_id' => '15639713083',
	'webcast_id' => '25d31b016da84fe28fb64ae98f01d1fa'
];
*/


//直播点赞
/*
$url = $host . 'sv300/webcast/addlikenumber';
$data = [
	'staff_id' => 108,
	'audience_id' => '15639713083',
	'webcast_id' => '25d31b016da84fe28fb64ae98f01d1fa'
];
*/


//获取直播点赞
/*
$url = $host . 'sv300/webcast/querylikenumber';
$data = [
	'staff_id' => 108,
	'audience_id' => '15639713083',
	'webcast_id' => '25d31b016da84fe28fb64ae98f01d1fa'
];
*/


//退出直播
/*
$url = $host . 'sv300/webcast/exitwebcast';
$data = [
	'staff_id' => 108,
	'audience_id' => '15639713083',
	'webcast_id' => '25d31b016da84fe28fb64ae98f01d1fa'
];
*/



//账号管理--店铺列表
/*
$url = $host . 'sv300/ucenter/mystore';
$data = [
	'staff_id' => 7945,
];
*/


//账号管理--切换店铺
/*
$url = $host . 'sv300/ucenter/switchstore';
$data = [
	'staff_id' => 108,
	'store_id' => 144
];
*/


//账号管理--写入店铺
/*
$url = $host . 'sv300/ucenter/insertstore';
$data = [
    'staff_id' => 108,
	'store_name' => '测试店铺01',
	'store_phone' => '010-12345678',
	'area_id' => 0,
	'store_address' => '文化路和东坝路交叉口南200米',
	'store_keeper' => '王金钱',
	'keeper_phone' => '15639713083',
	'keeper_idcard' => '411282199011101234',
	'idcard1' => 'idcard/1.jpg',
	'idcard2' => 'idcard/2.jpg',
	'idcard3' => 'idcard/3.jpg',
	'bus_licence_type' => 1,
	'bus_licence_number' => '123456789987654321',
	'bus_licence_name' => '测试店铺营业执照名称',
	'bus_licence_img' => 'buslicence/123.jpg',
	'longitude' => 0,
	'latitude' => 0,
	'weekday' => '1,2,3,4,5,6',
	'busstarttime' => '08:00',
	'busendtime' => '22:00',
	'prov' => 1,
	'city' => 1,
	'area' => 27,
];
*/


//账号管理--删除店铺
/*
$url = $host . 'sv300/ucenter/deletestore';
$data = [
	'staff_id' => 18522,
	'store_id' => 78203,
];
*/


//获取服务时间状态
/*
$url = $host . 'sv300/ucenter/servicetime';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'date' => '2017-7'
];
*/


//保存服务时间
/*
$url = $host . 'sv300/ucenter/saveservicetime';
$data = [
	'staff_id' => 108,
	'store_id' => 74402,
	'date' => '2017-7-7',
	'type' => 1,
	'start_time' => '09:00',
	'end_time' => '21:00',
	'rest_time' => ''
];
*/


//我的
/*
$url = $host . 'sv309/ucenter/index';
$data = [
	'staff_id' => 23577,
	'store_id' => 80408,
];
*/


//我的二维码
/*
$url = $host . 'sv300/ucenter/myqrcode';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
];
*/


//提现
/*
$url = $host . 'sv300/ucenter/withdraw';
$data = [
	'staff_id' => 16333,
	'store_id' => 76875,
];
*/


//申请提现

$url = $host . 'sv310/ucenter/applywithdraw';
$data = [
	'staff_id' => 31308,
	'store_id' => 83508,
	'type' => 1,
	'ali_id' => '15029229908',
	'ali_name' => '强妮妮',
	'money' => 597.96,
	'pwd' => '780629',
];


//收支记录
/*
$url = $host . 'sv309/ucenter/myflow';
$data = [
	'staff_id' => 108,
	'store_id' => 78466,
	'type' => 1,
	'perPage' => 1000,
	'lastId' => 0,
];
*/


//收支详情
/*
$url = $host . 'sv300/ucenter/myflowcnt';
$data = [
	'staff_id' => 108,
	'flow_id' => 1,
];
*/


//我的主页
/*
$url = $host . 'sv308/ucenter/mypage';
$data = [
	'staff_id' => 8403,
	'store_id' => 73137,
];
*/


//我的主页修改资料用户信息
/*
$url = $host . 'sv300/ucenter/myinfo';
$data = [
	'staff_id' => 108,
];
*/


//我的主页修改头像
//员工第一次登录修改修改头像
/*
$url = $host . 'sv300/ucenter/savephoto';
$data = [
	'staff_id' => 108,
	'photo' => 144,
];
*/


//我的主页修改从业年限
//员工第一次登录修改工作年限
/*
$url = $host . 'sv300/ucenter/savestaffyear';
$data = [
	'staff_id' => 108,
	'staff_year' => 5,
];
*/


//我的主页修改姓名和性别
/*
$url = $host . 'sv300/ucenter/savenameandsex';
$data = [
	'staff_id' => 108,
	'staff_name' => '阳红',
	'staff_sex' => 1,
];
*/


//我的主页全部点评
/*
$url = $host . 'sv300/ucenter/mycomment';
$data = [
	'staff_id' => 545,
	'perPage' => 20,
	'lastId' => 0
];
*/


//老板第一次登录修改店铺Logo
/*
$url = $host . 'sv300/ucenter/savestorelogo';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'img' => 'test.jpg',
];
*/


//老板第一次登录修改店铺介绍
/*
$url = $host . 'sv300/ucenter/savestoreintro';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'introduce' => '我是店铺介绍',
];
*/


//老板第一次登录修改店铺营业时间
/*
$url = $host . 'sv300/ucenter/savestoreworktime';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'weekday' => '1,2,3,4,5,6',
	'busstarttime' => '09:30',
	'busendtime' => '21:30',
];
*/


//忘记密码--发送验证码
/*
$url = $host . 'sv301/store/sendcode';
$data = [
	'telephone' => '66666666666',
];
*/


//忘记密码--验证验证码
/*
$url = $host . 'sv300/store/verifycode';
$data = [
	'telephone' => '13520096547',
	'code' => '1892',
];
*/


//忘记密码--重置密码
/*
$url = $host . 'sv300/store/savepwd';
$data = [
	'telephone' => '13520096547',
	'bus_number' => '111122223333',
	'staff_pwd' => '901110chun'
];
*/


//001口碑--评论列表
/*
$url = $host . 'sv300/reputation/commentlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 5,
	'lastId' => 0,
];
*/


//001口碑--回复评论
/*
$url = $host . 'sv301/reputation/publishreply';
$data = [
	'staff_id' => 19344,
	'comment_id' => 121,
	'reply_id' => 19344,
	'reply_to' => 41243,
	'content' => '谢谢，欢迎下次光临',
];
*/


//002项目--项目列表
/*
$url = $host . 'sv309/item/itemlist';
$data = [
	'staff_id' => 11305,
	'store_id' => 78171,
	'perPage' => 20,
	'page' => 1,
	'type' => 0,
	'item_type' => 0,
	'sell_order' => 0,
	'visit_order' => 0,
	'search' => '',
];
*/


//002项目--添加项目项目分类
/*
$url = $host . 'sv300/item/itemtypelist';
$data = [
	'staff_id' => 108,
];
*/


//002项目--添加项目图片空间
/*
$url = $host . 'sv300/item/itemimglist';
$data = [
	'staff_id' => 108,
	'itemimg_id' => 0,
];
*/


//002项目--添加项目新项目广告图
/*
$url = $host . 'sv300/item/adverimglist';
$data = [
	'staff_id' => 108,
	'itemimg_id' => 2,
];
*/


//002项目--添加项目
/*
$url = $host . 'sv309/item/insertitem';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'type' => 1,
	'item_type' => 1,
	'item_name' => '美发专业剪头发',
	'item_price' => 100,
	'item_prices' => 800,
	'item_number' => 10,
	//'item_img' => 'test.jpg',
	'vip_price' => 0.00,
	//'new_img' => 'test.jpg',
	'people' => '头发长的',
	'service_time' => 60,
	'content' => '专业剪头发',
];
*/


//002项目--添加到店长推荐/新项目/会员特惠专区
/*
$url = $host . 'sv300/item/moveitem';
$data = [
	'staff_id' => 108,
	'type' => 3,
	'item_id' => 229266,
	'vip_price' => 100,
	'new_img' => 'test.jpg'
];
*/


//002项目--项目删除/下架/移动全部
/*
$url = $host . 'sv300/item/delitem';
$data = [
	'staff_id' => 108,
	'action' => 1,
	'item_ids' => 229266,
];
*/


//002项目--项目排序列表
/*
$url = $host . 'sv300/item/sorteditemlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'page' => 0,
	'type' => 0,
];
*/


//002项目--项目排序
/*
$url = $host . 'sv300/item/sortitem';
$data = [
	'staff_id' => 108,
	'item_ids' => 229266,
];
*/


//002项目--项目详情
/*
$url = $host . 'sv300/item/itemcnt';
$data = [
	'staff_id' => 108,
	'item_id' => 71,
];
*/


//002项目--项目编辑获取信息
/*
$url = $host . 'sv300/item/edititem';
$data = [
	'staff_id' => 108,
	'item_id' => 71,
];
*/


//002项目--保存项目
/*
$url = $host . 'sv300/item/saveitem';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_id' => 71,
	'type' => 1,
	'item_type' => 1,
	'item_name' => '美发专业剪头发',
	'item_price' => 100,
	'item_prices' => 800,
	'item_number' => 10,
	//'item_img' => 'test.jpg',
	'vip_price' => 0.00,
	//'new_img' => 'test.jpg',
	'people' => '头发长的',
	'service_time' => 60,
	'content' => '专业剪头发',
];
*/


//002项目--项目评论
/*
$url = $host . 'sv300/item/itemcommentlist';
$data = [
	'staff_id' => 108,
	'item_id' => 21863,
	'perPage' => 20,
	'lastId' => 0,
];
*/


//002项目--回复评论
/*
$url = $host . 'sv301/item/publishreply';
$data = [
	'staff_id' => 108,
	'comment_id' => 3,
	'reply_id' => 108,
	'reply_to' => 28805,
	'content' => '谢谢，欢迎下次光临，20171108',
];
*/


//003订单--全部订单列表
/*
$url = $host . 'sv310/order/allorder';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 50,
	'page' => 3,
];
*/


//003订单--全部订单列表
/*
$url = $host . 'sv301/neworder/payedorder';
$data = [
	'staff_id' => 16922,
	'store_id' => 77166,
	'perPage' => 10,
	'page' => 1,
];
*/


//003订单--未支付订单列表
/*
$url = $host . 'sv310/order/noPayOrder';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0,
];
*/


//003订单--待服务+服务中+待回复
/*
$url = $host . 'sv300/order/childorder';
$data = [
	'staff_id' => 108,
	'store_id' => 77086,
	'perPage' => 10,
	'lastId' => 0,
	'status' => 9
];
*/


//003订单--订单详情
/*
$url = $host . 'sv308/order/ordercnt';
$data = [
	'staff_id' => 16919,
	'order_id' => 51574,
	'yuyue_id' => 0
];
*/


//003订单--老板确认预约
/*
$url = $host . 'sv301/order/confirmorder';
$data = [
	'staff_id' => 15959,
	'order_id' => 24625,
	'yuyue_id' => 4208,
];
*/


//003订单--老板拒绝预约
/*
$url = $host . 'sv300/order/refuseorder';
$data = [
	'staff_id' => 108,
	'order_id' => 17863,
	'yuyue_id' => 2744,
];
*/


//003订单--员工确认开始服务
/*
$url = $host . 'sv300/order/startservice';
$data = [
	'staff_id' => 545,
	'order_id' => 17863,
	'yuyue_id' => 2743,
];
*/


//003订单--服务已完成
/*
$url = $host . 'sv300/order/completeservice';
$data = [
	'staff_id' => 545,
	'order_id' => 17863,
	'yuyue_id' => 2743,
];
*/


//003订单--预约评论详情
/*
$url = $host . 'sv300/order/commentcnt';
$data = [
	'staff_id' => 108,
	'order_id' => 17852,
	'yuyue_id' => 2738,
];
*/


//003订单--回复评价
/*
$url = $host . 'sv301/order/publishreply';
$data = [
	'staff_id' => 19242,
	'comment_id' => 127,
	'reply_id' => 19242,
	'reply_to' => 39554,
	'content' => '谢谢，欢迎下次光临，20171108',
];
*/


//003订单--订单分配员工列表
/*
$url = $host . 'sv300/order/transferstafflist';
$data = [
	'staff_id' =>108,
	'store_id' => 144,
	'perPage' => 20,
	'page' => 1,
];
*/


//003订单--订单分配
/*
$url = $host . 'sv300/order/transferorder';
$data = [
	'staff_id' =>108,
	'order_id' => 144,
	'yuyue_id' => 100,
	'new_staff_id' => 200,
];
*/


//004客户--客户列表全部美容师
/*
$url = $host . 'sv308/custom/stafflist';
$data = [
	'staff_id' => 545,
	'store_id' => 144,
];
*/


//004客户--客户列表
/*
$url = $host . 'sv309/custom/customlist';
$data = [
	'staff_id' => 27470,
	'store_id' => 81962,
	'perPage' => 20,
	'page' => 0,
	'search_type' => 0,
	'search_staff_id' => 0,
	'order_by' => 0,
	'search_str' => ''
];
*/


//004客户--新客户列表
/*
$url = $host . 'sv300/custom/newcustomlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/


//004客户--移交员工列表
/*
$url = $host . 'sv300/custom/transferstafflist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'page' => 0
];
*/


//004客户--移交客户
/*
$url = $host . 'sv300/custom/transfercustom';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
    'transfer_to' => 545,
    'transfer_ids' => '93,97',
];
*/


//004客户--客户信息
/*
$url = $host . 'sv309/custom/customcnt';
$data = [
	'staff_id' => 21600,
	'store_id' => 79584,
    'custom_id' => 61512,
	'perPage' => 100,
    'lastId' => 0,
];
*/


/*
$url = $host . 'sv301/custom/customcnt';
$data = [
	'staff_id' => 16922,
	'store_id' => 77166,
    'custom_id' => 29200,
	'perPage' => 10,
    'lastId' => 0,
];
*/

//004客户--客户代金券
/*
$url = $host . 'sv300/custom/couponlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
    'custom_id' => 88,
	'perPage' => 20,
	'lastId' => 0
];
*/


//004客户--客户历史代金券
/*
$url = $host . 'sv300/custom/htycouponlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
    'custom_id' => 88,
	'perPage' => 20,
	'lastId' => 0
];
*/


//005店铺设置--店铺信息
/*
$url = $host . 'sv300/store_setting/storeinfo';
$data = [
	'staff_id' => 11305,
	'store_id' => 78181,
];
*/


//005店铺设置--保存店铺logo
/*
$url = $host . 'sv300/store_setting/savelogo';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'img' => 'file',
];
*/


//005店铺设置--保存店铺介绍
/*
$url = $host . 'sv300/store_setting/saveintroduce';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'introduce' => '克克美是一家集美容、‘美体、SPA于一体的健康养生连锁美容企业。2013年在北京CBD综合区开设第一家会所，至今拥有两家连锁店；公司不但拥有传统的美容护理项目，更引进了大批的高科技美容仪器设备，以满足各类型美容需求人士的需要；2年多来，企业不断强化管理、强抓服务细节与产品质量，赢得来店消费客户的一致认可与信任；',
];
*/


//005店铺设置--保存店铺营业时间
/*
$url = $host . 'sv300/store_setting/saveworktime';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'weekday' => '1,2,3,4,5',
	'busstarttime' => '09:00',
	'busendtime' => '21:00',
];
*/


//006相册--相册列表
/*
$url = $host . 'sv300/photo/gallerylist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
];
*/


//006相册--新建相册
/*
$url = $host . 'sv300/photo/insertgallery';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'name' => '测试相册',
];
*/


//006相册--修改相册名称
/*
$url = $host . 'sv300/photo/savegallery';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'gallery_id' => 3,
	'name' => '测试相册01',
];
*/


//006相册--删除相册
/*
$url = $host . 'sv300/photo/delgallery';
$data = [
	'staff_id' => 108,
	'gallery_id' => 6,
];
*/


//006相册--相册图片列表
/*
$url = $host . 'sv300/photo/photolist';
$data = [
	'staff_id' => 108,
	'gallery_id' => 7,
];
*/


//006相册--删除相册图片
/*
$url = $host . 'sv300/photo/delphoto';
$data = [
	'staff_id' => 108,
	'photo_id' => 7,
];
*/


//006相册--更换相册单张图片
/*
$url = $host . 'sv300/photo/replacephoto';
$data = [
	'staff_id' => 108,
	'photo_id' => 7,
	'photo' => 'aaa.jpg',
];
*/


//006相册--相册图片排序
/*
$url = $host . 'sv300/photo/sortphoto';
$data = [
	'staff_id' => 108,
	'photo_ids' => '8,9',
];
*/


//006相册--单张图片上传
/*
$url = $host . 'sv300/photo/uploadphoto';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'gallery_id' => 1,
	'photo' => '111.jpg',
];
*/


//007员工--员工列表
/*
$url = $host . 'sv310/staff/stafflist';
$data = [
	'staff_id' => 9129,
	'store_id' => 73482,
	'perPage' => 10,
	'page' => 0,
];
*/


//007员工--获取员工职务
/*
$url = $host . 'sv300/staff/staffranklist';
$data = [
	'staff_id' => 108,
];
*/


//007员工--添加员工
/*
$url = $host . 'sv300/staff/insertstaff';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'staff_name' => '王达成',
	'staff_sex' => 1,
	'telephone' => '13812345678',
	'staff_rank' => 1
];
*/


//007员工--员工详情
/*
$url = $host . 'sv308/staff/staffcnt';
$data = [
	'staff_id' => 16906,
	'id' => 8403,
];
*/


//007员工--员工的客户列表
/*
$url = $host . 'sv300/staff/customlist';
$data = [
	'staff_id' => 108,
	'id' => 545,
	'perPage' => 20,
	'lastId' => 0,
];
*/


//007员工--员工的评论列表
/*
$url = $host . 'sv300/staff/commentlist';
$data = [
	'staff_id' => 108,
	'id' => 545,
	'perPage' => 20,
	'lastId' => 0,
];
*/


//007员工--修改员工获取信息
/*
$url = $host . 'sv300/staff/getstaff';
$data = [
	'staff_id' => 108,
	'id' => 545,
];
*/


//007员工--修改员工资料
/*
$url = $host . 'sv300/staff/savestaff';
$data = [
	'staff_id' => 108,
	'id' => 11201,
	'staff_name' => '乔银钱',
	'staff_sex' => 1,
	'telephone' => '15639713099',
	'staff_rank' => 1
];
*/


//007员工--移除员工
/*
$url = $host . 'sv300/staff/delstaff';
$data = [
	'staff_id' => 108,
	'id' => 545,
];
*/


//007员工--移交客户列表
/*
$url = $host . 'sv300/staff/transfercustomlist';
$data = [
	'staff_id' => 108,
	'id' => 545,
	'perPage' => 5,
	'page' => 1
];
*/


//007员工--移交客户员工列表
/*
$url = $host . 'sv300/staff/transferstafflist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'id' => 545,
	'perPage' => 5,
	'page' => 1
];
*/


//007员工--移交客户
/*
$url = $host . 'sv300/staff/transfercustom';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
    'transfer_to' => 545,
    'transfer_ids' => '93,97',
];
*/


//007员工--查看员工服务时间
/*
$url = $host . 'sv300/staff/staffservicetime';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
    'id' => 545,
    'date' => '2017-7',
];
*/











//0001代金券--代金券列表

/*$url = $host . 'sv310/coupon/couponlist';
$data = [
	'staff_id' => 10351,
	'store_id' => 74028,
	'perPage' => 20,
	'lastId' => 0
];*/



//0001代金券--历史代金券列表
/*
$url = $host . 'sv300/coupon/htycouponlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/


//0001代金券--代金券使用范围列表
/*
$url = $host . 'sv300/coupon/coupontypelist';
$data = [
	'staff_id' => 108,
];
*/


//0001代金券-添加代金券
/*
$url = $host . 'sv300/coupon/insertcoupon';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'coupontype_id' => 1,
	'money' => 100,
	'reach' => 500,
	'mature' => '2017-9-1',
	'number' => 100,
];
*/


//0001代金券-删除代金券
/*
$url = $host . 'sv300/coupon/delcoupon';
$data = [
	'staff_id' => 108,
	'coupon_id' => 5757,
];
*/








//0002体验卡-添加体验卡项目列表
/*
$url = $host . 'sv310/expercard/itemlist';
$data = [
	'staff_id' => 9242,
	'store_id' => 73523,
	'perPage' => 10,
	'lastId' => 289152,
	
];
*/


//0002体验卡-添加体验卡
/*
$url = $host . 'sv300/expercard/insertexpercard';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'name' => '春节大优惠',
	'price' => 198,
	'item_ids' => '229266,226767,226661,226652,226648',
];
*/


//0002体验卡-体验卡详情
/*
$url = $host . 'sv300/expercard/expercardcnt';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'expercard_id' => 1,
];
*/


//0002体验卡-体验卡预览
/*
$url = $host . 'sv300/expercard/expercardpreview';
$data = [
	'staff_id' => 108,
	'expercard_id' => 1,
];
*/


//0002体验卡-已结束体验卡
/*
$url = $host . 'sv300/expercard/expercardend';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/


//0002体验卡-更新访问次数  pass
/*
$url = $host . 'sv300/expercard/savevisit';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/






//0003秒杀--秒杀列表
/*
$url = $host . 'sv300/miaosha/miaoshalist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/


//0003秒杀--添加秒杀项目列表
/*
$url = $host . 'sv300/miaosha/itemlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_type' => 0,
	'perPage' => 20,
	'lastId' => 0
];
*/


//0003秒杀--添加秒杀
/*
$url = $host . 'sv308/miaosha/insertmiaosha';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_id' => 226767,
	'price' => 168,
	'item_price' => 268,
	'number' => 9999999999,
	'onelimit' => 1,
	'start_time' => '2017-11-20 00:00',
	'end_time' => '2017-12-30 00:00'
];
*/


//0003秒杀--删除秒杀--废弃
/*
$url = $host . 'sv300/miaosha/delmiaosha';
$data = [
	'staff_id' => 108,
	'miaosha_id' => 1203,
];
*/


//0003秒杀--秒杀详情
/*
$url = $host . 'sv309/miaosha/miaoshacnt';
$data = [
	'staff_id' => 108,
	'store_id' => 80517,
	'miaosha_id' => 16554,
];
*/


//0004vip卡--vip卡列表
/*
$url = $host . 'sv300/vipcard/vipcardlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 20,
	'lastId' => 0
];
*/



//0004vip卡--vip卡图案列表
/*
$url = $host . 'sv300/vipcard/vipimglist';
$data = [
	'staff_id' => 108,
	'perPage' => 20,
	'lastId' => 0
];
*/


//0004vip卡--添加vip卡
/*
$url = $host . 'sv300/vipcard/insertvipcard';
$data = [
	'staff_id' => 9242,
	'store_id' => 73523,
	'vip_name' => 'Tttttttt',
	'vip_lines' => 100.12,
	'vip_discount' => 2.5,
	'vipimg_id' => 2,
];
*/


//0004vip卡--排序vip卡
/*
$url = $host . 'sv300/vipcard/sortvipcard';
$data = [
	'staff_id' => 108,
	'vipcard_ids' => '2113,2307',
];
*/


//0004vip卡--删除vip卡
/*
$url = $host . 'sv300/vipcard/delvipcard';
$data = [
	'staff_id' => 108,
	'vipcard_id' => 2113,
];
*/







//启动图片
/*
$url = $host . 'sv301/public/startpiclist';
$data = [
	'page' => 1,
];
*/


//轮播图片
/*
$url = $host . 'sv301/public/bannerpiclist';
$data = [
	'staff_id' => 108,
];
*/


//我的收入明细
/*
$url = $host . 'sv310/ucenter/myorderflow';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'source' => 0,
	'perPage' => 10,
	'page' => 1,
];
*/

//我的收入明细详情
/*
$url = $host . 'sv310/ucenter/myorderflowcnt';
$data = [
	'staff_id' => 108,
	'flow_id' => 32709,
];
*/


//小程序推广---活动列表
/*
$url = $host . 'sv310/wxapp/wxapplist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 10,
	'page' => 1,
];
*/

//小程序推广---添加活动选择项目列表
/*
$url = $host . 'sv310/wxapp/itemlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 10,
	'page' => 1,
];
*/

//小程序推广---添加活动
/*
$url = $host . 'sv310/wxapp/insertwxapp';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_id' => 236,
	'price' => 10,
	'item_price' => 300,
	'number' => 10,
	'onelimit' => 1,
];
*/

//小程序推广---编辑活动返回数据
/*
$url = $host . 'sv310/wxapp/editwxapp';
$data = [
	'staff_id' => 108,
	'wxapp_id' => 1,
];
*/


//小程序推广---保存活动
/*
$url = $host . 'sv310/wxapp/savewxapp';
$data = [
	'staff_id' => 108,
	'wxapp_id' => 1,
	'store_id' => 144,
	'item_id' => 236,
	'price' => 10,
	'item_price' => 300,
	'number' => 10,
	'onelimit' => 2,
];
*/

//小程序推广---结束/删除活动
/*
$url = $host . 'sv310/wxapp/endordelwxapp';
$data = [
	'staff_id' => 108,
	'wxapp_id' => 1,
	'action' => 1,
];
*/



//限时抢购---限时抢购列表
/*
$url = $host . 'sv310/qianggou/qianggoulist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'perPage' => 10,
	'page' => 1,
];
*/


//限时抢购---限时抢购项目列表
/*
$url = $host . 'sv310/qianggou/itemlist';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_type' => 0,
	'perPage' => 10,
	'page' => 1,
	'lastId' => 288958,
];
*/


//限时抢购---添加限时抢购
/*
$url = $host . 'sv310/qianggou/insertqianggou';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'item_id' => 13384,
	'price' => 10.00,
	'item_price' => 268.00,
	'number' => 50,
];
*/


//限时抢购---更新限时抢购
/*
$url = $host . 'sv310/qianggou/saveqianggou';
$data = [
	'staff_id' => 108,
	'qianggou_id' => 1,
	'store_id' => 144,
	'item_id' => 13384,
	'price' => 10.00,
	'item_price' => 268.00,
	'number' => 50,
];
*/

//限时抢购---结束限时抢购
/*
$url = $host . 'sv310/qianggou/endqianggou';
$data = [
	'staff_id' => 108,
	'qianggou_id' => 1,
];
*/


//限时抢购---限时抢购详情
/*
$url = $host . 'sv310/qianggou/qianggoucnt';
$data = [
	'staff_id' => 108,
	'store_id' => 144,
	'qianggou_id' => 1,
];
*/









$return = curlPost($url, $data);
echo $return;


	

?>